<template>
    <div>
        <div v-if="action == 'table' ">
            <el-input :value="Value" placeholder="请输入内容"></el-input>
        </div>
        <div v-if="action == 'edit' ">
            <el-date-picker
                    :value="Value"
                    type="date"
                    v-on="$listeners"
                    value-format="yyyy-mm-dd"
                    placeholder="选择日期时间">
            </el-date-picker>
        </div>


    </div>
</template>
<script>
    export default {
        props: {
            data: Object,
            schema:Object,
            action:{
                type:String,
                default:'edit'
            },
            value:[String, Number, Array,Date,Object]
        },
        data() {
            return {
                myValue: this.value
            }
        },


    }
</script>
<style>
</style>